package net.wofly.sale.commodity.service;

import java.util.List;

import net.wofly.sale.commodity.domain.Commodity;
import net.wofly.sale.commodity.domain.CommodityDetailImg;

public interface ICommodityDetailImgService {

	/**
	 * 增加或修改
	 * 
	 * @param entity
	 * @return
	 */
	CommodityDetailImg save(CommodityDetailImg entity);

	/**
	 * 删除
	 * 
	 * @param entity
	 * @return
	 */
	void delete(CommodityDetailImg entity);

	/**
	 * 根据主键ID删除
	 * 
	 * @param key
	 * @return
	 */
	void delete(String key);

	/**
	 * 根据主键查询
	 * 
	 * @param key
	 * @return
	 */
	CommodityDetailImg findOne(String key);
	
	List<CommodityDetailImg> save(List<CommodityDetailImg> entityList) ;

	List<CommodityDetailImg> findByCommodityIDAndImgType(String brandID, Integer imgType);
	
	List<CommodityDetailImg> findByCommodityID(String commodityID);
	
	Commodity save(Commodity commodity) ;
	
	/**
	 * 
	 * 
	 * @param commodityID
	 */
	public void deleteByCommodityID(String commodityID);

}
